package com.eliteams.quick4j.app.service;

import com.eliteams.quick4j.app.model.Sitemaprsslist;
import com.eliteams.quick4j.app.model.SitemaprsslistExample;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import org.apache.ibatis.annotations.Param;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * Created by Administrator on 2017/11/15.
 */
public interface SitemaprssListService {
    int countByExample(SitemaprsslistExample example);

    int deleteByExample(SitemaprsslistExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Sitemaprsslist record);

    int insertSelective(Sitemaprsslist record);

    List<Sitemaprsslist> selectByExample(SitemaprsslistExample example);

    Sitemaprsslist selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Sitemaprsslist record, @Param("example") SitemaprsslistExample example);

    int updateByExample(@Param("record") Sitemaprsslist record, @Param("example") SitemaprsslistExample example);

    int updateByPrimaryKeySelective(Sitemaprsslist record);

    int updateByPrimaryKey(Sitemaprsslist record);

    List<Sitemaprsslist> selectSiteMap();
    
    //获取循环一次的SiteMap数据
    List<String> selectSiteMap1(String uuId);

    //获取循环两次的SiteMap数据
    List<String> selectSiteMap2();

    //查看RSS数据
    List<Sitemaprsslist> selectRSS();

    //分页查询数据
    List<Sitemaprsslist> selectSiteList(@Param("start") int start,@Param("size") int size);

    //查数据总数
    int selectCountMember();

    //封装返回粉丝分页json
    void fomartReturnJsonSiteView(HttpServletRequest req, HttpServletResponse resp, int start,int size);

    //通过当前id修改数据；
    int updateSiteById(Sitemaprsslist sitemaprsslist);
}
